package com.aforce3.trailertracer;

import java.util.ArrayList;
import java.util.List;

public class TrailerTracer
{
	public static void main(String[] args)
	{
		/*
		{
			FrameServer server = new FrameServer(SceneFactory.getVideoScene001());
			Renderer renderer = new Renderer(server);
			new Display(server, renderer);
			renderer.setPriority(Thread.MIN_PRIORITY);
			renderer.start();
		}

		*/
		/*
		{
			FrameServer server = new FrameServer(SceneFactory.getStaticScene002());
			Renderer renderer = new Renderer(server);
			new Display(server, renderer);
			renderer.start();
		}
		{
			FrameServer server = new FrameServer(SceneFactory.getStaticScene001());
			Renderer renderer = new Renderer(server);
			new Display(server, renderer);
			renderer.start();
		}
		
		{
			//TODO: This is wrong; see the definition of getScene007
			FrameServer server = new FrameServer(SceneFactory.getScene007(0.2));
			Renderer renderer = new Renderer(server);
			new Display(server, renderer);
			renderer.start();
		}

		{
			List<Frame> frames = new ArrayList<Frame>();
			for(int i = 0; i < 5; i++) frames.add(SceneFactory.getScene008(i/5.0));
			FrameServer server = new FrameServer(frames);
			Renderer renderer = new Renderer(server);
			new Display(server, renderer);
			renderer.start();
		}
		*/
		
		{
			FrameServer server = new FrameServer(SceneFactory.getScene009(5));
			Renderer renderer = new Renderer(server);
			new Display(server, renderer);
			renderer.start();
		}
		
		
	}
	
}
